//package com.imooc.bilibili.api;
//
//import com.imooc.bilibili.domain.JsonResponse;
//import com.imooc.bilibili.service.ElasticSearchService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.io.IOException;
//import java.util.List;
//import java.util.Map;
//
//
//@RestController
//public class SystemApi {
//
//
//    @Autowired
//    private ElasticSearchService elasticSearchService;
//
//    @GetMapping("/contents")
//    public JsonResponse<List<Map<String, Object>>> getContents(@RequestParam String keyword,
//                                                               @RequestParam Integer pageNum,
//                                                               @RequestParam Integer pageSize) throws IOException {
//        List<Map<String, Object>> list = elasticSearchService.getContents(keyword, pageNum, pageSize);
//        return new JsonResponse<>(list);
//    }
//
//
//}
